package main

import (
	"os"
	"os/signal"
	"./network"
)

func main() {
	server := network.NewTcpServer("127.0.0.1:8888")
	go server.Start()

	sc := make(chan os.Signal, 1)
	signal.Notify(sc, os.Interrupt, os.Kill)
	<-sc

	server.Stop()
	os.Exit(0)
}
